import type { StoryObj } from '@storybook/react';
import Textfield from './Textfield';

const meta = {
  title: 'Textfield',
  component: Textfield
};

export default meta;
type Story = StoryObj<typeof meta>;

export const Search: Story = {
  args: {
    type: 'search',
  }
};

export const Password: Story = {
  args: {
    type: 'password',
  }
};

export const Tel: Story = {
  args: {
    type: 'tel',
  }
};

export const Disabled: Story = {
  args: {
    type: 'text',
    disabled: true,
  }
};

export const Error: Story = {
  args: {
    type: 'text',
    status: 'error',
    hint: 'Ошибка',
  }
};

export const Success: Story = {
  args: {
    type: 'text',
    status: 'success',
    hint: 'Успех',
  }
}